# -*- coding: utf-8 -*-
import json
import requests
session = requests.Session()
data = {
    'locations': [
        {
            "color": u'蓝',
            "vclNo": u"陕XB0066"
        },
        {
            "color": u"黄",
            "vclNo": "陕XB0066"
        }
    ],
    "timeNearby": "72"
}
resp = session.post(
    url='http://192.168.31.121:9412/api/external/car/locations',
    data=json.dumps(data, ensure=False),
    headers={'Content-Type': 'application/json'}
)
print resp.content
